package Farsail::Mock::open;

use strict; 
use warnings;

use Carp;
use Path::Class::File;

use File::Spec;

use Test::MockObject;
Test::MockObject->fake_module(
    'Path::Class::File',
    'open' => sub {
        return IO::File->new(File::Spec->devnull, "+<");
    }
);

1;
